package com.spic.business.plan.exercisePlan.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.spic.common.core.annotation.Excel;
import com.spic.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * 应急演练计划对象 plan_exercise_plan
 * 
 * @author spic
 * @date 2021-11-09
 */
public class PlanExercisePlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 演练计划ID */
    private String id;

    /** 计划名称 */
    @NotBlank
    @Excel(name = "计划名称")
    private String planName;

    /** 计划编号 */
    @NotBlank
    @Excel(name = "计划编号")
    private String planNum;

    /** 计划级别 */
    @NotBlank
    @Excel(name = "计划级别")
    private Long planLevel;

    /** 计划类别 */
    @NotBlank
    @Excel(name = "计划类别")
    private Long planType;

    /** 计划状态 */
    @NotBlank
    @Excel(name = "计划状态")
    private Long planState;

    /** 计划年份 */
    @NotBlank
    @Excel(name = "计划年份")
    private String planYear;

    /** 计划月份 */
    @NotBlank
    @Excel(name = "计划月份")
    private String planMonth;

    /** 创建者 */
    @Excel(name = "创建者")
    private Long creatBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    /** 0-未删除；1-已删除 */
    private Integer deleteFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setPlanName(String planName) 
    {
        this.planName = planName;
    }

    public String getPlanName() 
    {
        return planName;
    }
    public void setPlanNum(String planNum) 
    {
        this.planNum = planNum;
    }

    public String getPlanNum() 
    {
        return planNum;
    }
    public void setPlanLevel(Long planLevel) 
    {
        this.planLevel = planLevel;
    }

    public Long getPlanLevel() 
    {
        return planLevel;
    }
    public void setPlanType(Long planType) 
    {
        this.planType = planType;
    }

    public Long getPlanType() 
    {
        return planType;
    }
    public void setPlanState(Long planState) 
    {
        this.planState = planState;
    }

    public Long getPlanState() 
    {
        return planState;
    }
    public void setPlanYear(String planYear) 
    {
        this.planYear = planYear;
    }

    public String getPlanYear() 
    {
        return planYear;
    }
    public void setPlanMonth(String planMonth) 
    {
        this.planMonth = planMonth;
    }

    public String getPlanMonth() 
    {
        return planMonth;
    }
    public void setCreatBy(Long creatBy) 
    {
        this.creatBy = creatBy;
    }

    public Long getCreatBy() 
    {
        return creatBy;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }
    public void setDeleteFlag(Integer deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Integer getDeleteFlag() 
    {
        return deleteFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("planName", getPlanName())
            .append("planNum", getPlanNum())
            .append("planLevel", getPlanLevel())
            .append("planType", getPlanType())
            .append("planState", getPlanState())
            .append("planYear", getPlanYear())
            .append("planMonth", getPlanMonth())
            .append("remark", getRemark())
            .append("creatBy", getCreatBy())
            .append("creatTime", getCreatTime())
            .append("updateTime", getUpdateTime())
            .append("deleteFlag", getDeleteFlag())
            .toString();
    }
}
